package net.itbaiyang.pattern.enums;

import lombok.Getter;


/**
 * @author xq
 * @Description 状态码定义约束，共6位数，前三位代表接口类型，后三位代码异常类型
 *
 */
public enum BizCodeEnum {


    /**
     * 短信分组
     */
    SMS_TYPE(23001,"类型不存在");


    @Getter
    private String message;

    @Getter
    private int code;

    private BizCodeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }
}